package com.guli.product.feign;

import com.guli.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Repository
@FeignClient("ware-service")
public interface WareFeign {

    /*
    * 根据sku_id查询该商品是否有库存
    * */
    @GetMapping("ware/waresku/hasStock/{skuId}")
    public R hasStock(@PathVariable Long skuId);
}
